package com.ebt.m.proposal_v2.base;

import com.ebt.m.utils.ConfigData;

/**
 * @author archer.qi
 *         Created on 2017/5/19.
 */
public class Constant {

    /* 录音地址*/
    public static final String outputTapDir = ConfigData.DATA_PATH + "/record/";
    public static final String outputTapFileName = "record.mp3";
    public static final String outputTap = outputTapDir + outputTapFileName;
    /* 制作计划书 - 默认年龄为30*/
    public static final String PROPOSAL_AGE_DEFAULT = "30";
    /* 制作计划书 - 默认性别为男*/
    public static final int PROPOSAL_SEX_DEFAULT = 1;
    /* 制作计划书 - 默认职业类型为一类，代码为1*/
    public static final int PROPOSAL_PROFESSION_DEFAULT = 1;
    /* 每页加载多少数据*/
    public static final int DEFAULT_PAGE_SIZE = 1000;
    /* 分割线颜色*/
    public static final String DIVIDER_COLOR_STRING = "#ffe2e2e2";
    /* 分割线厚度*/
    public static final int DIVIDER_SIZE = 1;

    /* 性别对应code*/
    public static final int SEX_MALE = 1;
    public static final int SEX_FEMALE = 0;

    /* 计划书制作默认年龄问哦30 */
    public static final int DEFAULT_AGE = 30;

    /* 计划书制作投保人小提示*/
    public static final String SP_PROPOSAL_APPLICANT_TIP = "ApplicantTip";
    /* 计划书制作主险小提示*/
    public static final String SP_PROPOSAL_MAIN_TIP = "MainTip";

    // Js调用Native交互对象名称
    public static final String JSCallInstance = "EbtJsBridge";

    /* 计划书主附险编辑计算器*/
    public static String PROPOSAL_CALCULATOR_WEB_URL;

    /* 计划书语音上传OSS-bucketName*/
    public static String PROPOSAL_TAP_UPLOAD_OSS_BUCKETNAME;

    /* 计划书语音上传OSS-path*/
    public static String PROPOSAL_TAP_UPLOAD_OSS_PATH;

    static {
        if (ConfigData.VERSION_TEST) {
            // 测试版本
            PROPOSAL_CALCULATOR_WEB_URL = "http://m.test.e-baotong.cn/calculator/normal?";
            PROPOSAL_TAP_UPLOAD_OSS_BUCKETNAME = "test12323";
            PROPOSAL_TAP_UPLOAD_OSS_PATH = "datas/test/";
        } else {
            // 正式版本
            PROPOSAL_CALCULATOR_WEB_URL = "https://m.e-bao.cn/calculator/normal?";
            PROPOSAL_TAP_UPLOAD_OSS_BUCKETNAME = "proposalres";
            PROPOSAL_TAP_UPLOAD_OSS_PATH = "tape/";
        }
    }

}
